package com.score.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.score.pojo.TCheckDorm;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ICheckDormMapper extends BaseMapper<TCheckDorm> {

    @Select("SELECT *,count(*) FROM t_check_dorm where state=#{state} and state=#{state}")
    List<TCheckDorm> selectByMyWrapper(@Param("state") String state);
}
